package es.castorm.arch.web;

public class ExtJsResponse<T> {

	T data;

	boolean success;

	String message;

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public ExtJsResponse(T data) {
		super();
		this.data = data;
		this.success = true;
	}

	public ExtJsResponse(T data, String message) {
		this.data = data;
		this.success = false;
		this.message = message;
	}

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public T getData() {
		return data;
	}

	public void setData(T data) {
		this.data = data;
	}
}
